package com.chinafree.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chinafree.permission.model.po.RolePO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @description: TODO
 * @author: longzix
 * @modified By: longzix
 * @date: Created in 2021/7/23 15:36
 * @version:v1.0
 */

public interface RoleMapper  extends BaseMapper<RolePO> {
    @Select("select `is_admin` from acl_role where deleted = 0 and id = #{roleId}")
    Integer selectIsAdminById(@Param("roleId") Integer roleId);



}
